package springboot_select.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import springboot_select.entity.SelectInfo;
import springboot_select.service.SelectService;

@RestController
@RequestMapping(value="/main")
public class SelectController {
	@Autowired
	private SelectService selectService;
	@GetMapping("/select")
	List<SelectInfo> select() {
		return selectService.selectInfo();
		
	}

}
